home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 7
/
FM Towns Free Software Collection 7.iso
/
taropyon
/
guilib3
/
inc
/
spfunc.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-11-30
|
1KB
|
33 lines
#ifndef _SPFUNC_H
#define _SPFUNC_H
#ifndef _SIZE_T_DEFINED
#define _SIZE_T_DEFINED
typedef unsigned int size_t;
#endif
#ifndef CONST
# define CONST const
#endif
/*----- "spfunc10.c" --------------------------------------------*/
#define SP_FOPEN(_fn,_md) ((_SPfopen)((_fn),(_md)))
#define SP_FCLOSE(_fp) ((_SPfclose)((_fp)))
extern void * ((*_SPfopen)(CONST char *,CONST char *)) ;
extern int (*_SPfclose)(void *) ;
/*----- "spfunc11.c" --------------------------------------------*/
#define SP_REMOVE(_fn) ((_SPremove)((_fn)))
extern int (*_SPremove)(CONST char *);
/*----- "spfunc20.c" --------------------------------------------*/
#define SP_MALLOC(_siz) ((_SPmalloc)((_siz)))
#define SP_FREE(_ptr) ((_SPfree)((_ptr)))
extern void *((*_SPmalloc)(size_t)) ;
extern void (*_SPfree)(void *) ;
/*----- "spfunc21.c" --------------------------------------------*/
#define SP_CALLOC(_siz,_blk) ((_SPcalloc)((_siz),(_blk)))
extern void *((*_SPcalloc)(size_t,size_t)) ;
#endif